<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="deviceId" name="deviceId" th:value="${deviceId}" class="form-control" type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">维护类型：</label>
								<div class="col-sm-8">
									<!--<input id="maintainId" name="maintainId" class="form-control" type="text">-->
									<select id="maintainId" name="maintainId" class="form-control">

									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">操作人：</label>
								<div class="col-sm-8">
									<input id="operator" name="operator" class="form-control" type="text">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">维护时间：</label>
								<div class="col-sm-8">
									<input id="maintainDate" name="maintainDate" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="mark" name="mark" class="form-control" type="text">
								</div>
							</div>

														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">记录日志--富文本：</label>
								<div class="col-sm-8">
									<div id="editor" name="editor">

									</div>
									<input id="recordLog" name="recordLog" class="form-control" type="hidden">
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:src="@{/js/appjs/device/maintainRecord/add.js}" src="/js/appjs/device/maintainRecord/add.js">
	</script>
    <script type="text/javascript">
        laydate.render({
            elem: '#maintainDate', //指定元素
            type: 'datetime'
        });

        var E = window.wangEditor
		var editor = new E('#editor')
        editor.customConfig.menus = [
            'head',  // 标题
            'bold',  // 粗体
            'fontSize',  // 字号
            'fontName',  // 字体
            'italic',  // 斜体
            'underline',  // 下划线
            'strikeThrough',  // 删除线
            'foreColor',  // 文字颜色
            'backColor',  // 背景颜色
            'link',  // 插入链接
            'list',  // 列表
            'justify',  // 对齐方式
//            'quote',  // 引用
            'image',  // 插入图片
            'table',  // 表格
        ]
        editor.customConfig.uploadImgServer = getProjectName()+'/common/sysFile/uploadOss'
		editor.create()
		
        function setRecordLog() {
            var log = editor.txt.html()
			$("#recordLog").val(log)
        }

	</script>
</body>
</html>
